<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.8"/>
<title>embedme: XmlNode类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.8 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_xml_node-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">XmlNode类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>XML结点类  
 <a href="class_xml_node.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_xml_data_8h_source.html">XmlData.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a9ba652be4d38ecccaa3933b5dde6401e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a9ba652be4d38ecccaa3933b5dde6401e">XmlNode</a> ()</td></tr>
<tr class="memdesc:a9ba652be4d38ecccaa3933b5dde6401e"><td class="mdescLeft">&#160;</td><td class="mdescRight">XmlNode构造函数  <a href="#a9ba652be4d38ecccaa3933b5dde6401e">更多...</a><br /></td></tr>
<tr class="separator:a9ba652be4d38ecccaa3933b5dde6401e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1584a23b1dfc8548fd5b915ff789e004"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a1584a23b1dfc8548fd5b915ff789e004">~XmlNode</a> ()</td></tr>
<tr class="memdesc:a1584a23b1dfc8548fd5b915ff789e004"><td class="mdescLeft">&#160;</td><td class="mdescRight">XmlNode析构函数  <a href="#a1584a23b1dfc8548fd5b915ff789e004">更多...</a><br /></td></tr>
<tr class="separator:a1584a23b1dfc8548fd5b915ff789e004"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad26f634f1b8d75b3432fd76d2b2c5053"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#ad26f634f1b8d75b3432fd76d2b2c5053">isNullNode</a> ()</td></tr>
<tr class="memdesc:ad26f634f1b8d75b3432fd76d2b2c5053"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断结点是否是空结点  <a href="#ad26f634f1b8d75b3432fd76d2b2c5053">更多...</a><br /></td></tr>
<tr class="separator:ad26f634f1b8d75b3432fd76d2b2c5053"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac005efa5665cbedbe18062343ab0bd4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#aac005efa5665cbedbe18062343ab0bd4">childNum</a> ()</td></tr>
<tr class="memdesc:aac005efa5665cbedbe18062343ab0bd4"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取子结点的个数  <a href="#aac005efa5665cbedbe18062343ab0bd4">更多...</a><br /></td></tr>
<tr class="separator:aac005efa5665cbedbe18062343ab0bd4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad51acdb93e8c2edce1d4d702c55c2638"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#ad51acdb93e8c2edce1d4d702c55c2638">serialize</a> ()</td></tr>
<tr class="memdesc:ad51acdb93e8c2edce1d4d702c55c2638"><td class="mdescLeft">&#160;</td><td class="mdescRight">串行化XmlNode成字符串  <a href="#ad51acdb93e8c2edce1d4d702c55c2638">更多...</a><br /></td></tr>
<tr class="separator:ad51acdb93e8c2edce1d4d702c55c2638"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a01d9453d3e4d3b0ca2619bcda6d77385"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_xml_node.html">XmlNode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a01d9453d3e4d3b0ca2619bcda6d77385">operator[]</a> (int idx)</td></tr>
<tr class="memdesc:a01d9453d3e4d3b0ca2619bcda6d77385"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据索引获取兄弟结点  <a href="#a01d9453d3e4d3b0ca2619bcda6d77385">更多...</a><br /></td></tr>
<tr class="separator:a01d9453d3e4d3b0ca2619bcda6d77385"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8b3d11b1332db524f0d2e8f6f0273c2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_xml_node.html">XmlNode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#ab8b3d11b1332db524f0d2e8f6f0273c2">operator[]</a> (std::string name)</td></tr>
<tr class="memdesc:ab8b3d11b1332db524f0d2e8f6f0273c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据名称获取子结点  <a href="#ab8b3d11b1332db524f0d2e8f6f0273c2">更多...</a><br /></td></tr>
<tr class="separator:ab8b3d11b1332db524f0d2e8f6f0273c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a18636be88588bd43c12c65ea56135f13"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a18636be88588bd43c12c65ea56135f13">intValue</a> ()</td></tr>
<tr class="memdesc:a18636be88588bd43c12c65ea56135f13"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取结点整数值  <a href="#a18636be88588bd43c12c65ea56135f13">更多...</a><br /></td></tr>
<tr class="separator:a18636be88588bd43c12c65ea56135f13"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad14844c8c5e4b8e6c12d937c361319ba"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#ad14844c8c5e4b8e6c12d937c361319ba">doubleValue</a> ()</td></tr>
<tr class="memdesc:ad14844c8c5e4b8e6c12d937c361319ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取结点浮点数值  <a href="#ad14844c8c5e4b8e6c12d937c361319ba">更多...</a><br /></td></tr>
<tr class="separator:ad14844c8c5e4b8e6c12d937c361319ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a6654123228ad3542efd87ff9451708"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a9a6654123228ad3542efd87ff9451708">stringValue</a> ()</td></tr>
<tr class="memdesc:a9a6654123228ad3542efd87ff9451708"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取结点字符串值  <a href="#a9a6654123228ad3542efd87ff9451708">更多...</a><br /></td></tr>
<tr class="separator:a9a6654123228ad3542efd87ff9451708"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef5ef6934bb3934f4944cd67c66df44d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#aef5ef6934bb3934f4944cd67c66df44d">setValue</a> (const int &amp;value)</td></tr>
<tr class="memdesc:aef5ef6934bb3934f4944cd67c66df44d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置结点整数值  <a href="#aef5ef6934bb3934f4944cd67c66df44d">更多...</a><br /></td></tr>
<tr class="separator:aef5ef6934bb3934f4944cd67c66df44d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36f21dc3234ef4df501f311de2d18ef6"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a36f21dc3234ef4df501f311de2d18ef6">setValue</a> (const double &amp;value)</td></tr>
<tr class="memdesc:a36f21dc3234ef4df501f311de2d18ef6"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置结点浮点数值  <a href="#a36f21dc3234ef4df501f311de2d18ef6">更多...</a><br /></td></tr>
<tr class="separator:a36f21dc3234ef4df501f311de2d18ef6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a951ede58c3fc8eae425452f57ac57426"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a951ede58c3fc8eae425452f57ac57426">setValue</a> (const std::string &amp;value)</td></tr>
<tr class="memdesc:a951ede58c3fc8eae425452f57ac57426"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置结点字符串值  <a href="#a951ede58c3fc8eae425452f57ac57426">更多...</a><br /></td></tr>
<tr class="separator:a951ede58c3fc8eae425452f57ac57426"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ac599b30c45da921195e105cf49e0bb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a3ac599b30c45da921195e105cf49e0bb">addSubNode</a> (const std::string &amp;name, const int &amp;value)</td></tr>
<tr class="memdesc:a3ac599b30c45da921195e105cf49e0bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加整数型子结点  <a href="#a3ac599b30c45da921195e105cf49e0bb">更多...</a><br /></td></tr>
<tr class="separator:a3ac599b30c45da921195e105cf49e0bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a262af3db782bb6fea0b438851f058de8"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a262af3db782bb6fea0b438851f058de8">addSubNode</a> (const std::string &amp;name, const double &amp;value)</td></tr>
<tr class="memdesc:a262af3db782bb6fea0b438851f058de8"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加浮点型子结点  <a href="#a262af3db782bb6fea0b438851f058de8">更多...</a><br /></td></tr>
<tr class="separator:a262af3db782bb6fea0b438851f058de8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbd477b3678ffa2b8537f36ff9891123"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#acbd477b3678ffa2b8537f36ff9891123">addSubNode</a> (const std::string &amp;name, const std::string value=&quot;&quot;)</td></tr>
<tr class="memdesc:acbd477b3678ffa2b8537f36ff9891123"><td class="mdescLeft">&#160;</td><td class="mdescRight">增加字符串型子结点  <a href="#acbd477b3678ffa2b8537f36ff9891123">更多...</a><br /></td></tr>
<tr class="separator:acbd477b3678ffa2b8537f36ff9891123"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43d08860cac8e7fe4898ce61d2f7dc35"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a43d08860cac8e7fe4898ce61d2f7dc35">getAttribute</a> (const std::string &amp;attr, int &amp;value)</td></tr>
<tr class="memdesc:a43d08860cac8e7fe4898ce61d2f7dc35"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取结点整型属性值  <a href="#a43d08860cac8e7fe4898ce61d2f7dc35">更多...</a><br /></td></tr>
<tr class="separator:a43d08860cac8e7fe4898ce61d2f7dc35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6668313d87d91a7841356dcd58997f2c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a6668313d87d91a7841356dcd58997f2c">getAttribute</a> (const std::string &amp;attr, double &amp;value)</td></tr>
<tr class="memdesc:a6668313d87d91a7841356dcd58997f2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取结点浮点型属性值  <a href="#a6668313d87d91a7841356dcd58997f2c">更多...</a><br /></td></tr>
<tr class="separator:a6668313d87d91a7841356dcd58997f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a137f51d301a1a937b1798f113c35f704"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a137f51d301a1a937b1798f113c35f704">getAttribute</a> (const std::string &amp;attr, std::string &amp;value)</td></tr>
<tr class="memdesc:a137f51d301a1a937b1798f113c35f704"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取结点字符串型属性值  <a href="#a137f51d301a1a937b1798f113c35f704">更多...</a><br /></td></tr>
<tr class="separator:a137f51d301a1a937b1798f113c35f704"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50f7f823f6f9dd3f4816aa3a808f7485"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a50f7f823f6f9dd3f4816aa3a808f7485">setAttribute</a> (const std::string &amp;attr, const int &amp;value)</td></tr>
<tr class="memdesc:a50f7f823f6f9dd3f4816aa3a808f7485"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置结点整型属性值  <a href="#a50f7f823f6f9dd3f4816aa3a808f7485">更多...</a><br /></td></tr>
<tr class="separator:a50f7f823f6f9dd3f4816aa3a808f7485"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42288c4c887e7bdc79e244f108ec295e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a42288c4c887e7bdc79e244f108ec295e">setAttribute</a> (const std::string &amp;attr, const double &amp;value)</td></tr>
<tr class="memdesc:a42288c4c887e7bdc79e244f108ec295e"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置结点浮点型属性值  <a href="#a42288c4c887e7bdc79e244f108ec295e">更多...</a><br /></td></tr>
<tr class="separator:a42288c4c887e7bdc79e244f108ec295e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a469ab8ba35107e72f95c8d2cebec1f0a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_xml_node.html#a469ab8ba35107e72f95c8d2cebec1f0a">setAttribute</a> (const std::string &amp;attr, const std::string &amp;value)</td></tr>
<tr class="memdesc:a469ab8ba35107e72f95c8d2cebec1f0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置获取结点字符串型属性值  <a href="#a469ab8ba35107e72f95c8d2cebec1f0a">更多...</a><br /></td></tr>
<tr class="separator:a469ab8ba35107e72f95c8d2cebec1f0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:af71142c842358d55a8c8ae0c87554be1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af71142c842358d55a8c8ae0c87554be1"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>XmlData</b></td></tr>
<tr class="separator:af71142c842358d55a8c8ae0c87554be1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>XML结点类 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a class="anchor" id="a9ba652be4d38ecccaa3933b5dde6401e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XmlNode::XmlNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>XmlNode构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>
<dl class="section note"><dt>注解</dt><dd>XmlNode代表一个XML子结点 </dd></dl>

</div>
</div>
<a class="anchor" id="a1584a23b1dfc8548fd5b915ff789e004"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XmlNode::~XmlNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>XmlNode析构函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>none </dd></dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a3ac599b30c45da921195e105cf49e0bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>增加整数型子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>结点名称 </td></tr>
    <tr><td class="paramname">value</td><td>整数值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a262af3db782bb6fea0b438851f058de8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>增加浮点型子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>结点名称 </td></tr>
    <tr><td class="paramname">value</td><td>浮点数值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="acbd477b3678ffa2b8537f36ff9891123"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::addSubNode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string&#160;</td>
          <td class="paramname"><em>value</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>增加字符串型子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>结点名称 </td></tr>
    <tr><td class="paramname">value</td><td>字符串值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="aac005efa5665cbedbe18062343ab0bd4"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XmlNode::childNum </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取子结点的个数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>子结点个数 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ad14844c8c5e4b8e6c12d937c361319ba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double XmlNode::doubleValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取结点浮点数值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回浮点数值 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a43d08860cac8e7fe4898ce61d2f7dc35"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::getAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取结点整型属性值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>整型属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a6668313d87d91a7841356dcd58997f2c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::getAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取结点浮点型属性值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>浮点型属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a137f51d301a1a937b1798f113c35f704"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::getAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取结点字符串型属性值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>字符串属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a18636be88588bd43c12c65ea56135f13"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int XmlNode::intValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取结点整数值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回整数值 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ad26f634f1b8d75b3432fd76d2b2c5053"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::isNullNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断结点是否是空结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>false or true </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a01d9453d3e4d3b0ca2619bcda6d77385"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_xml_node.html">XmlNode</a> XmlNode::operator[] </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>idx</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据索引获取兄弟结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">idx</td><td>索引值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果存在则返回index对应的兄弟结点;否则返回空结点 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>例:node["item"][1],表示获取第2个item结点,node["item"]与node["item"][0]是等价的. </dd></dl>

</div>
</div>
<a class="anchor" id="ab8b3d11b1332db524f0d2e8f6f0273c2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_xml_node.html">XmlNode</a> XmlNode::operator[] </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据名称获取子结点 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>结点名称 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果存在则返回第一个子结点;否则返回空结点 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="ad51acdb93e8c2edce1d4d702c55c2638"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string XmlNode::serialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>串行化XmlNode成字符串 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回xml字符串,失败返回空字符串 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a50f7f823f6f9dd3f4816aa3a808f7485"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::setAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置结点整型属性值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>整型属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a42288c4c887e7bdc79e244f108ec295e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::setAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置结点浮点型属性值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>浮点型属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a469ab8ba35107e72f95c8d2cebec1f0a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::setAttribute </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置获取结点字符串型属性值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">attr</td><td>属性名称 </td></tr>
    <tr><td class="paramname">value</td><td>字符串属性值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="aef5ef6934bb3934f4944cd67c66df44d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::setValue </td>
          <td>(</td>
          <td class="paramtype">const int &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置结点整数值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>整数值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a36f21dc3234ef4df501f311de2d18ef6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::setValue </td>
          <td>(</td>
          <td class="paramtype">const double &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置结点浮点数值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>浮点数值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a951ede58c3fc8eae425452f57ac57426"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool XmlNode::setValue </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置结点字符串值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>字符串值 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<a class="anchor" id="a9a6654123228ad3542efd87ff9451708"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string XmlNode::stringValue </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取结点字符串值 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">none</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回字符串值 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>none </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>libemb/inc/<a class="el" href="_xml_data_8h_source.html">XmlData.h</a></li>
<li>libemb/src/XmlData.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2016年 七月 7日 星期四 19:49:39 , 为 embedme使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.8
</small></address>
</body>
</html>
